<?php

namespace App\Repository\Models;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class AttributeCrontabs.
 *
 * @package namespace App\Repository\Models;
 */
class AttributeCrontabs extends Model implements Transformable
{
    use TransformableTrait;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $table='attribute_crontabs';
    protected $fillable = ['expired_at','order_id','status','type'];
    const TYPE_CANCEL = 1;
    const TYPE_AFFIRM = 2;

    const STATUS_NONE = 0;
    const STATUS_DONE = 1;

    public static $type_map = [
       1 => '订单自动取消',
       2 => '订单自动确认'
    ];

}
